-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to configure a cluster wide queue limit #11196
A way to configure a cluster wide queue limit #11196
Conversation
@michaelklishin @mkuratczyk this is a simpler approach. Another way to 'store' the cluster wide queue limit, instead of config, would perhaps be to store it as a global parameter? Or, read the config at start and store the value in a db, and let it be overwritten by whatever node writes last? Personally I don't think having a 'cluster setting' per node is that much of an issue, but am willing to change my mind quickly. |
No, we should not use global parameters for things that are not dynamic in nature, and knowing the background on this, this is something that an absolute majority of installations will set in stone and rarely change, perhaps after a period of adaptation. Or not set in the first place. |
OK, ill leave as is and add some tests. |
@SimonUnge as for setting this cluster-wide setting on every node, since most cluster provisioning tools/options perform config generation one way or another, this won't be an issue. As long as the value is identical on all nodes anyway, which we can assume to be the case most of the time and/or eventually after a redeployment. |
yes, I agree. Its the easiest and most straightforward approach to setting it. |
Thanks Simon. The limit is enforced in the wrong place however - it's only applicable to AMQP 0.9.1 and "non-native" protocols, so that'd be just STOMP in 4.0 or perhaps not even that. I can easily declare more queues than the limit I set by:
I think these checks should be moved to |
@mkuratczyk ah right you are, I'll move it (I basically just placed it where the vhost queue limit is). I'll move it to a better place. I will not move the vhost limit in this PR to keep it clean, but can create an issue for it. |
b89befc
to
f011a8e
Compare
@michaelklishin noticed I pointed this one to v3.13.x... Should I switch to main? |
You need to create a new branch off of main, cherry-pick the commit(s) there and push it, then submit a PR against main. |
6f10959
to
c8427da
Compare
@michaelklishin Done. Also squashed this commit. |
Will rebase on #11222 once merged, to combine the logic a bit. |
ee526da
to
50c39b5
Compare
50c39b5
to
909b964
Compare
Proposed Changes
Much simpler approach to #10748.
Version for
main
: #11212.This solution uses a limit conf setting.
Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.md
documentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution
you did and what alternatives you considered, etc.